package com.stone.design.patterns.builder;

/**
 * @description
 * @Time 2018/5/29 13:53
 * Created by Stone on 2018/5/29.
 */
public class BuilderTest {

    public static void main(String[] args) {
        Builder builder = new MacBookBuilder();
        builder.buildBoard("英特主板")
                .buildDisplay("华为显示器")
                .buildOs();
        System.out.print(builder.create().toString());
    }
}
